package com.rbac.entity;

import java.time.LocalDateTime;

public class SysRole {
	
	private Long id;
	private String roleName;
	private String roleCode;
	private String description;
	private Integer status;
	private Integer sortOrder;
	private LocalDateTime createTime;
	private LocalDateTime updateTime;
	
	public SysRole() {}
	
	public SysRole(Long id, String roleName, String roleCode, String description, Integer status, Integer sortOrder) {
		this.id = id;
		this.roleName = roleName;
		this.roleCode = roleCode;
		this.description = description;
		this.status = status;
		this.sortOrder = sortOrder;
	}
	
	// Getters and Setters
	public Long getId() {
		return id;
	}
	
	public void setId(Long id) {
		this.id = id;
	}
	
	public String getRoleName() {
		return roleName;
	}
	
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	
	public String getRoleCode() {
		return roleCode;
	}
	
	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}
	
	public String getDescription() {
		return description;
	}
	
	public void setDescription(String description) {
		this.description = description;
	}
	
	public Integer getStatus() {
		return status;
	}
	
	public void setStatus(Integer status) {
		this.status = status;
	}
	
	public Integer getSortOrder() {
		return sortOrder;
	}
	
	public void setSortOrder(Integer sortOrder) {
		this.sortOrder = sortOrder;
	}
	
	public LocalDateTime getCreateTime() {
		return createTime;
	}
	
	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}
	
	public LocalDateTime getUpdateTime() {
		return updateTime;
	}
	
	public void setUpdateTime(LocalDateTime updateTime) {
		this.updateTime = updateTime;
	}
	
	@Override
	public String toString() {
		return "SysRole{" +
				"id=" + id +
				", roleName='" + roleName + '\'' +
				" roleCode='" + roleCode + '\'' +
				" description='" + description + '\'' +
				", status=" + status +
				", sortOrder=" + sortOrder +
				", createTime=" + createTime +
				", updateTime=" + updateTime +
				'}';
	}
} 